<?php
    //获取cookie
    $ab=$_COOKIE["username"];
    echo $ab;
?>
<script>
console.log(document.cookie);
</script>